package com.ruoyi.eoms.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ruoyi.eoms.domain.Agreement;
import com.ruoyi.eoms.mapper.AgreementMapper;
import com.ruoyi.eoms.service.IAgreementService;

/**
 * 合同管理Service业务层处理
 * 
 * @author yuanpingfang
 * @date 2020-12-01
 */
@Service
public class AgreementServiceImpl implements IAgreementService 
{
    @Autowired
    private AgreementMapper agreementMapper;

    /**
     * 查询合同管理
     * 
     * @param agreementId 合同管理ID
     * @return 合同管理
     */
    @Override
    public Agreement selectAgreementById(String agreementId)
    {
        return agreementMapper.selectAgreementById(agreementId);
    }

    /**
     * 查询合同管理列表
     * 
     * @param agreement 合同管理
     * @return 合同管理
     */
    @Override
    public List<Agreement> selectAgreementList(Agreement agreement)
    {
        return agreementMapper.selectAgreementList(agreement);
    }

    /**
     * 新增合同管理
     * 
     * @param agreement 合同管理
     * @return 结果
     */
    @Override
    public int insertAgreement(Agreement agreement)
    {
        return agreementMapper.insertAgreement(agreement);
    }

    /**
     * 修改合同管理
     * 
     * @param agreement 合同管理
     * @return 结果
     */
    @Override
    public int updateAgreement(Agreement agreement)
    {
        return agreementMapper.updateAgreement(agreement);
    }

    /**
     * 批量删除合同管理
     * 
     * @param agreementIds 需要删除的合同管理ID
     * @return 结果
     */
    @Override
    public int deleteAgreementByIds(String[] agreementIds)
    {
        return agreementMapper.deleteAgreementByIds(agreementIds);
    }

    /**
     * 删除合同管理信息
     * 
     * @param agreementId 合同管理ID
     * @return 结果
     */
    @Override
    public int deleteAgreementById(String agreementId)
    {
        return agreementMapper.deleteAgreementById(agreementId);
    }
}
